import React from 'react';
import '../less/common.less';
import '../less/CustomLine.less';
import { Map, Marker, NavigationControl } from 'react-bmap';
// import {Map,MouseTool} from 'react-amap';

export class MyBMap extends React.Component {
    constructor(props) {
        super(props);
        this.state = {

        }
        // console.log(Map)
        // console.log(MouseTool)
    };
    render() {
        return (
            <div>
                {/* <Map amapkey={'b68141da0d7c81503b6459bc207a7144'}  /> */}
             <Map center={{ lng: 116.402544, lat: 39.928216 }} zoom="12" enableScrollWheelZoom={true} style={{ width: 350, height: 300 }}>
                <Marker position={{ lng: 116.402544, lat: 39.928216 }} />
                <NavigationControl />

                {/* <InfoWindow position={{ lng: 116.402544, lat: 39.928216 }} text="内容" title="标题" /> */}
            </Map> 
            </div>
        )
    }
}
